<%@ page import="org.openehr.am.archetype.constraintmodel.*" %>

<%--
// in: ref (${ref.rmAttributeName}) (${cref.class})<br/>
// in: archetype
--%>

ARCHETYPE INTERNAL REF: ${ref.targetPath}

<g:set var="node" value="${archetype.node( ref.targetPath )}" />
<g:set var="strclass" value='${node.getClass().getSimpleName()}'/>
<g:set var="templateName" value="${strclass[0].toLowerCase()+strclass.substring(1)}" />
<g:render template="templates/${templateName}"
          model="[(templateName): node,
                  archetype: archetype,
                  archetypeService: archetypeService]" />


                
